//
// Created by Gao Shihao on 2022/12/22.
//

#include <plc2llvm/Visitor/strategy/var_decls/VisitVariable_Name.h>

VisitVariable_Name* VisitVariable_Name::VisitVariable_Name_Strategy = new VisitVariable_Name();

VisitVariable_Name::VisitVariable_Name() {
    registerMe(plcst::PLCSTParser::RuleVariable_Name);
}

std::any VisitVariable_Name::invoke(antlr4::ParserRuleContext *parserCtx, Visitor *visitor) {
    auto ctx = dynamic_cast<plcst::PLCSTParser::Variable_NameContext*>(parserCtx);
    return ctx->getText();

}